"use strict";

var _regeneratorRuntime2 = _interopRequireDefault(require('../../vendor.js')(2));

var _core = _interopRequireDefault(require('../../vendor.js')(0));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

_core["default"].page({
  methods: {
    // 滚动切换标签样式
    switchTab: function switchTab(e) {
      this.currentTab = e.detail.current;
      this.checkCor();
    },
    // 点击标题切换当前页时改变样式
    swichNav: function swichNav(e) {
      var cur = e.target.dataset.current;

      if (this.currentTaB == cur) {
        return false;
      } else {
        this.currentTab = cur;
      }
    }
  },
  data: {
    currentTab: 0,
    //预设当前项的值
    scrollLeft: 0,
    //tab标题的滚动条位置
    expertList: [{
      //假数据
      img: "2f9a36046449dafb8608e99990b3c205.jpeg",
      order: "订单已发货",
      name: "SV-5Q型汽车尾气分析仪",
      tag: "数量：1",
      time: "下单时间：2019-11-05 15:16"
    }]
  },
  components: {},
  onShow: function onShow() {
    return _regeneratorRuntime2["default"].async(function onShow$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
          case "end":
            return _context.stop();
        }
      }
    });
  },
  checkCor: function checkCor() {
    if (this.currentTab > 4) {
      this.scrollLeft = 300;
    } else {
      this.scrollLeft = 0;
    }
  },
  onLoad: function onLoad() {
    var that = this;
  },
  footerTap: function footerTap() {
    return this.$wxapp.footerTap;
  },
  onReachBottom: function onReachBottom() {},
  onShareAppMessage: function onShareAppMessage() {
    return config.shareConfig;
  }
}, {info: {"components":{},"on":{}}, handlers: {'7-168': {"tap": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.swichNav($event)
      })();
    
  }},'7-169': {"tap": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.swichNav($event)
      })();
    
  }},'7-170': {"tap": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.swichNav($event)
      })();
    
  }},'7-171': {"tap": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.swichNav($event)
      })();
    
  }},'7-172': {"tap": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.swichNav($event)
      })();
    
  }},'7-173': {"change": function proxy () {
    var $event = arguments[arguments.length - 1];
    var _vm=this;
      return (function () {
        _vm.switchTab($event)
      })();
    
  }}}, models: {} });